package com.yum.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Package: com.yum.common.config
 * Description： yum全局配置类
 * Author: Forest
 * Date: Created in 2021/3/27 21:53
 * Version: 0.0.1
 * Modified By: duforest
 */
@Component
@ConfigurationProperties(prefix = "yum")
public class YumAppConfig {

    /**
     * 项目名称
     */
    private static String name;

    /**
     * 版本
     */
    private static String version;

    public void setName(String name) {
        this.name = name;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public static String getName() {
        return name;
    }

    public static String getVersion() {
        return version;
    }
}
